import request from './request.js'
// 参数列表
export const getParams = (id,sel)=> request.get(`categories/${id}/attributes?sel=${sel}`)
// 添加
export const addParams = (id,params)=> request.post(`categories/${id}/attributes`,params)
// 删除
export const delParams = (id,attrid)=> request.delete(`categories/${id}/attributes/${attrid}`)
// 修改
export const changeParams = (id,attrid,params)=> request.put(`categories/${id}/attributes/${attrid}`,params);

